package com.andyliu.sys.service;

import com.andyliu.sys.pojo.SDept;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName: DeptService
 * Description: 部门业务
 * date: 2021/1/20 5:02 下午
 *
 * @author andyliu
 * @since JDK 1.8
 */
public interface DeptService {

    Boolean saveDept(SDept dept);

    Boolean deleteDeptById(Integer id);

    SDept selectDeptById(Integer id);

    PageInfo<SDept> selectDeptByPage(SDept dept,Integer pageNumber,Integer pageSize);

    Boolean deleteDeptById(Integer[] ids);

    List<SDept> queryDepts();

    List<SDept> queryDeptParent();

}
